#coding=utf-8

data=[
  {
    '登录':{
        'url':'http://172.16.70.246/test/oa_auth/login',
        'method':'post',
        'headers':{'Content-Type':'application/json'},
        "data": {"password": "000000","userNumber": "20280"},
        'expect':200
    }},
 {
    '提交待入职信息':{
        'url':'http://172.16.70.246/test/oa_personnel/entrant/saveEntrantInfo',
        'method':'post',
        'headers':{'Authorization':'','Content-Type':'application/json'},
        'data':{
                        "employeePhone": '',
                        "attributionInfo": [
                            "1",
                            "1"
                        ],
                        "employeeName": '',
                        "employeeSex": "女",
                        "contactWay": "",
                        "email":'',
                        "startEntrantDate": "",
                        "endEntrantDate": "",
                        "clientId": "391",
                        "accountManagerName": "孙彪",
                        "isHaveInstitutionalContracts": 1,
                        "counselorNumber": "20280",
                        "organizationId": 257,
                        "client2Id": "",
                        "postId": "55",
                        "employeeId": "",
                        "departmentId": "",
                        "employeeStatus": "",
                        "counselor": "",
                        "remark": "备注",
                        "contractSerial": "dj343",
                        "entryDate": "2024-01-11",
                        "resumeFileId": 95876,
                        "clientOrganizationId": "1208",
                        "postLevelId": "41",
                        "attributionId": "1",
                        "branchCompanyId": "1",
                        "websiteName": "智联招聘",
                        "duty": "职责"
                    },
        'expect':200
  }
    },
    {
        '入职申请':{
                'url':'http://172.16.70.246/test/oa_personnel/entrantNewFlow/creatEntrantNewFlow',
                'method':'post',
                'expect':200,
                'headers':{'Authorization':'','Content-Type':'application/json'},
                'data':{
                    "entrantId": '',
                    "employeeName": '',
                    "employeeAge": 23,
                    "employeeSex": "女",
                    "contactWay": '',
                    "workingYears": 3,
                    "websiteName": "智联招聘",
                    "censusRegister": "户籍地址",
                    "lastOrganization": "上家公司名称",
                    "blackGrayRosterType": "",
                    "authRes": "学历及真实性复核结果",
                    "backgroundSurvey": "背景调查情况",
                    "clientName": "抖音科技",
                    "clientOrganizationName": "字节跳动",
                    "isHaveInstitutionalContracts": "1",
                    "clientPostName": "运营经理",
                    "clientPostLevelName": "中级",
                    "organizationName": "hhx第二事业部",
                    "accountManagerName": "孙彪",
                    "officeLocation": "办公地点",
                    "employeeStatus": "0",
                    "entryDate": "2024-01-11",
                    "plannedAdmissionDate": "2024-01-11",
                    "lossDays": "0",
                    "probation": 6,
                    "planRegularDate": "2024-07-11",
                    "clientId": 391,
                    "clientOrganizationId": 1208,
                    "orgId": 257,
                    "comUnitPrice": 5000,
                    "salaryCalculateWay": "1",
                    "tryOutWages": 5000,
                    "positiveWages": 5000,
                    "ssPayType": "1",
                    "annualBonusType": "0",
                    "attributionId": 440300,
                    "workArea": [
                        110000,
                        110100,
                        110101
                    ],
                    "cityOfSocial": "1",
                    "ssLevelConfigId": "2",
                    "socialSecurityPaymentLevel": "非深户二档",
                    "ssPfgSerial": "SZ00017",
                    "entryGrossProfitMargin": -32.58,
                    "customerMinimumGrossMargin": "",
                    "remark": "备注",
                    "enclosure": "[{\"name\":\"zhaopin.pdf\",\"fileId\":\"95876\"},{\"status\":\"success\",\"name\":\"20231219-095348.png\",\"size\":469532,\"percentage\":100,\"uid\":1704962083805,\"raw\":{\"uid\":1704962083805},\"response\":{\"status\":200,\"message\":\"200\",\"page\":null,\"data\":{\"fileName\":\"20231219-095348.png\",\"fileUrl\":\"83AEFDF7D90343618696ACDEAD51BD41\",\"obsFileId\":95887,\"url\":\"https://test-deke-file.obs.cn-south-1.myhuaweicloud.com:443//employee/2024-01-11/7fc25a60-0f9a-44a1-84b6-c62be80519bb.png?AccessKeyId=I9ZCZEJISNYACIEG6MSF&Expires=1707554084&Signature=N5lqsW7VIpyUwFwS5t%2FsXGyKMJs%3D\"}}}]",
                    "empFile": {
                        "personalityFile": [
                            {
                                "name": "知识型员工心理风险因素评估报告(10).pdf",
                                "fileId": 72176
                            },
                            {
                                "name": "综合简版报告(10).pdf",
                                "fileId": 72177
                            }
                        ],
                        "backgroundFile": []
                    },
                    "auditConfigVO": {
                        "auditConfigId": 46,
                        "carbonCopy": "{\"choiceType\":\"0\",\"id\":\"10000\",\"userId\":14,\"userName\":\"胡城\"},{\"choiceType\":\"0\",\"id\":\"18736\",\"userId\":837,\"userName\":\"陈奕鑫(18736)\"},{\"choiceType\":\"0\",\"id\":\"cscc\",\"userId\":843,\"userName\":\"冲哥\"},{\"choiceType\":\"0\",\"id\":\"cici\",\"userId\":845,\"userName\":\"冲弟\"},{\"choiceType\":\"9\",\"userName\":\"\"},{\"choiceType\":\"15\",\"userName\":\"\"},{\"choiceType\":\"16\",\"userName\":\"\"}",
                        "auditConfigName": "入职",
                        "flowTypeName": "人资管理",
                        "flowTypeId": 2,
                        "createTime": "2023-01-28T12:00:00.000+00:00",
                        "updateTime": "2024-01-11T08:07:16.000+00:00",
                        "createBy": 1,
                        "updateBy": 851,
                        "createName": "admin",
                        "updateName": "诸葛亮",
                        "bizType": "29",
                        "initiatingNodeName": "客户经理审核入职信息准确性",
                        "copyNodeName": "抄送",
                        "callbackUrl": "/oa_personnel/entrantNewFlow/approvedCallBackEntrantNewFlow",
                        "nodeConfigs": [
                            {
                                "nodeConfigId": 2661,
                                "nodeConfigName": "客户经理审核入职信息准确性",
                                "auditConfigId": 46,
                                "nodeJson": "{\"choiceType\":\"9\",\"userName\":\"\"}",
                                "auditType": 0,
                                "isSelfSelectNode": 1,
                                "nodeOrder": 0,
                                "isCallback": 0,
                                "auditers": [
                                    {
                                        "id": "20280",
                                        "label": "孙彪",
                                        "children": None,
                                        "deptId": "257",
                                        "deptName": "",
                                        "type": "1",
                                        "userNumber": "20280",
                                        "userName": "孙彪",
                                        "userId": "886",
                                        "choiceType": "9"
                                    }
                                ]
                            },
                            {
                                "nodeConfigId": 2662,
                                "nodeConfigName": "部门负责人审批入职",
                                "auditConfigId": 46,
                                "nodeJson": "{\"choiceType\":\"0\",\"id\":\"12844\",\"userId\":579,\"userName\":\"徐宇珍\"},{\"choiceType\":\"0\",\"id\":\"10497\",\"userId\":540,\"userName\":\"谭珍珍\"},{\"choiceType\":\"0\",\"id\":\"cshhx\",\"userId\":694,\"userName\":\"黄华新(cshhx)\"},{\"choiceType\":\"0\",\"id\":\"20280\",\"userId\":886,\"userName\":\"孙彪\"}",
                                "auditType": 0,
                                "isSelfSelectNode": 0,
                                "nodeOrder": 1,
                                "isCallback": 1,
                                "auditers": [
                                    {
                                        "userId": 579,
                                        "userName": "徐宇珍",
                                        "choiceType": "0",
                                        "id": "12844"
                                    },
                                    {
                                        "userId": 540,
                                        "userName": "谭珍珍",
                                        "choiceType": "0",
                                        "id": "10497"
                                    },
                                    {
                                        "userId": 694,
                                        "userName": "黄华新(cshhx)",
                                        "choiceType": "0",
                                        "id": "cshhx"
                                    },
                                    {
                                        "userId": 886,
                                        "userName": "孙彪",
                                        "choiceType": "0",
                                        "id": "20280"
                                    }
                                ]
                            }
                        ],
                        "customNodes": None,
                        "carbonCopiesCustomNodes": None,
                        "isCallbackList": None,
                        "carbonCopies": [
                            {
                                "userId": 14,
                                "userName": "胡城",
                                "choiceType": "0",
                                "id": "10000"
                            },
                            {
                                "userId": 837,
                                "userName": "陈奕鑫(18736)",
                                "choiceType": "0",
                                "id": "18736"
                            },
                            {
                                "userId": 843,
                                "userName": "冲哥",
                                "choiceType": "0",
                                "id": "cscc"
                            },
                            {
                                "userId": 845,
                                "userName": "冲弟",
                                "choiceType": "0",
                                "id": "cici"
                            },
                            {
                                "userId": 694,
                                "userName": "黄华新(cshhx)",
                                "choiceType": "15",
                                "id": "cshhx"
                            },
                            {
                                "userId": 857,
                                "userName": "马超",
                                "choiceType": "16",
                                "id": "007"
                            }
                        ],
                        "selfSelectCarbonCopies": True,
                        "auditTypeList": None,
                        "nodeConfigNameList": [],
                        "auditers": []
                    }
}
        }



    },
    {
        '小程序扫码':{
                'url':'http://172.16.70.246/test/oa_personnel/entrantApp/saveEntrantInfo',
                'method':'post',
                'expect':200,
                'headers':{'Content-Type': 'application/json'},
                'data':{
                    "region": [
                        "北京市",
                        "北京市",
                        "东城区"
                    ],
                    "nativePlace": [
                        "北京市",
                        "北京市",
                        "东城区"
                    ],
                    "detailAddress": "详细地址",
                    "certificateStart": "2005-12-31",
                    "certificateEnd": "2015-12-31",
                    "entrantTrainingExpers": [
                        {
                            "school": "学校培训名称",
                            "speciality": "所学专业",
                            "office": "学校任职",
                            "certificate": "取得证书",
                            "startDate": "2022-06-29",
                            "endDate": "2022-06-29"
                        }
                    ],
                    "entrantFamilies": [
                        {
                            "name": "家庭姓名",
                            "relation": "家庭关系",
                            "age": "33",
                            "phone": "13539590623",
                            "accumulationFund": "",
                            "affiliation": "工作单位及职务"
                        }
                    ],
                    "entrantWorkExpers": [
                        {
                            "organization": "工作经历公司名称",
                            "department": "工作部门",
                            "position": "",
                            "duty": "工作职责",
                            "witness": "工作证明人",
                            "phone": "证明人联系电话",
                            "startDate": "2022-06-29",
                            "endDate": "2022-06-29"
                        }
                    ],
                    "entrantId": '',
                    "employeeName": '',
                    "employeeSex": "女",
                    "employeeBirthdate": "2000-06-29",
                    "employeeNation": "汉",
                    "censusRegister": "户籍地址",
                    "idCard": 442,
                    "idCardBack": 444,
                    "employeeCard": "340825199303233515",
                    "residentialAddress": "北京市北京市东城区详细地址",
                    "employeeBirthplace": "北京市北京市东城区",
                    "employeeAge": "22",
                    "politicsStatus": "群众",
                    "maritalStatu": "未婚",
                    "fertilityStatus": "未生育",
                    "documentType": "0",
                    "contactWay": '',
                    "email": "HLX1@derkee.com",
                    "firstEmergencyContact": "第一紧急联系人姓名",
                    "firstEmergencyContactRelation": "第一关系",
                    "firstEmergencyContactNumber": "13593959062",
                    "firstEmergencyContactAddress": "第一地址",
                    "secondEmergencyContact": "第二姓名",
                    "secondEmergencyContactRelation": "第二关系",
                    "secondEmergencyContactNumber": "13539590656",
                    "secondEmergencyContactAddress": "第二地址",
                    "degree": "博士研究生",
                    "specialty": "所学专业",
                    "schoolTag": "毕业院校",
                    "graduationDate": "2022-06-29",
                    "vocationalSkills": "专业资格证",
                    "achievements": "主要业绩和成果",
                    "isBank": "1",
                    "bankId": 1,
                    "wageCard": "4444444444444444",
                    "accountOutlets": "开户网点",
                    "location": "33333",
                    "accumulationFund": "111111",
                    "isHaveRelativesOrOtherInterests": 0,
                    "relatedPersonSingleJob": "关系人担任职务",
                    "illegalOrganizeWhether": 0,
                    "diseaseWhether": "重大伤病记录",
                    "specialtyAndHobbies": "特长或爱好",
                    "otherInstructions": "其他说明",
                    "personalDocument": 445,
                    "personalDocumentsrc": "http://tmp/rzDhuUsfLkls694d9ba4a0694d8f7957e7146d9ea16e.png",
                    "diploma": 446,
                    "diplomasrc": "http://tmp/Y9lrhy563Cyg694d9ba4a0694d8f7957e7146d9ea16e.png",
                    "certificate": 447,
                    "certificatesrc": "http://tmp/j5YoKd3ddeb0694d9ba4a0694d8f7957e7146d9ea16e.png",
                    "profQualCert": 448,
                    "profQualCertsrc": "http://tmp/wmr2FCKck3pg694d9ba4a0694d8f7957e7146d9ea16e.png",
                    "offiTrans": 449,
                    "offiTranssrc": "http://tmp/oJhx0RnWYjdH694d9ba4a0694d8f7957e7146d9ea16e.png",
                    "mediReport": 450,
                    "mediReportsrc": "http://tmp/nQulRXlGx6N5694d9ba4a0694d8f7957e7146d9ea16e.png",
                    "emplSepaCert": 451,
                    "emplSepaCertsrc": "http://tmp/riVv8PeNGkgq694d9ba4a0694d8f7957e7146d9ea16e.png",
                    "bankCard": 453,
                    "bankCardsrc": "http://tmp/78ftvQt20jj2694d9ba4a0694d8f7957e7146d9ea16e.png"
}
        }
    },
    {
        '查询流程':{

                'url' :'http://172.16.70.246/test/oa_audit/audit/findAuditByAuditId',
                'method':'get',
                'expect':200,
                'headers' : {'Authorization': '', 'Content-Type': 'application/json'},
                'data' : {'auditId': ''}
        }
    },
    {
        '审批流程':
                 {
                'url': 'http://172.16.70.246/test/oa_audit/audit/examineApprove',
                'method':'post',
                'expect':200,
                'headers':{'Authorization': '', 'Content-Type': 'application/json'},
                'data': {"auditId": '', "auditNodeId": '', "auditOrder": '', "auditStatus": "1"}
                 }



    },
    {
        '生成合同':{
            'url':'http://172.16.70.246/test/oa_personnel/contractAgreementToSign/generateContractAgreement',
            'method':'post',
            'expect':200,
            'headers' : {'Authorization': 'token', 'Content-Type': 'application/json'},
            'data':[
                {
                    "employeeId":'employee_id',
                    "entrantId":'id',
                    "employeeName":'name',
                    "hireDate": "2024-01-11",
                    "isAdmissionRecord": 0,
                    "entrantInfo": 1,
                    "contractStatus": 0,
                    "clientName": "抖音科技",
                    "clientOrganizationName": "字节跳动",
                    "orgName": "hhx第二事业部",
                    "attributionName": "深圳市",
                    "accountManagerName": "孙彪",
                    "clientPostName": "运营经理",
                    "contractNumber": 1,
                    "offerAcceptState": 0,
                    "employeeStatus": 0,
                    "positiveDate": "2024-07-11",
                    "empContractSerial": None,
                    "attributionId": 1,
                    "departmentId": 257,
                    "refuseRemark": None,
                    "signType": 0,
                    "contractType": None,
                    "contractObject": None,
                    "employeeContractType": "1",
                    "contractTemplateName": None,
                    "contractEndDate": None,
                    "contractStratDate": None,
                    "isEmployeeSignContract": 1,
                    "isPrtocolSigningCompleted": 0,
                    "operate": [
                        {
                            "name": "生成",
                            "hasBtn": "be_signed_generate"
                        }
                    ],
                    "_X_ROW_KEY": "row_422",
                    "contractSerial": "8b40a2c9ed4a428f9dc9d0877539981c",
                    "agreementSerialList": [
                        "8e270dba60db416894421efab50da8a6"
                    ],
                    "contractDateMethod": 1,
                    "firstContractDate": "2024-01-01",
                    "firstContractEndDate": "2026-01-01",
                    "empUnitPrice": ""
                }]

        }
    },
    {
        '推送合同':{

            'url':'http://172.16.70.246/test/oa_personnel/laborSignEmployee/registrationAndCertification',
            'method':'post',
            'expect':200,
            'headers': {'Authorization': 'token', 'Content-Type': 'application/json'},
            'data':[{
                    "employeeId": 'employee_id',
                    "entrantId": 'id',
                    "employeeName": 'name',
                    "hireDate": "2024-01-01",
                    "isAdmissionRecord": 0,
                    "entrantInfo": 1,
                    "contractStatus": 5,
                    "clientName": "抖音科技",
                    "clientOrganizationName": "字节跳动",
                    "orgName": "hhx第二事业部",
                    "attributionName": "深圳市",
                    "accountManagerName": "孙彪",
                    "clientPostName": "运营经理",
                    "contractNumber": 1,
                    "offerAcceptState": 0,
                    "employeeStatus": 0,
                    "positiveDate": "2024-07-11",
                    "empContractSerial": "7e31545bee234d308953bb63bcb8ee73",
                    "attributionId": 1,
                    "departmentId": 257,
                    "refuseRemark": None,
                    "signType": 0,
                    "contractType": 1,
                    "contractObject": 0,
                    "employeeContractType": 1,
                    "contractTemplateName": "2023初签-雇员",
                    "contractEndDate": "2026-01-01",
                    "contractStratDate": "2024-01-01",
                    "isEmployeeSignContract": 1,
                    "isPrtocolSigningCompleted": 0,
                    "operate": [
                        {
                            "name": "重新生成",
                            "hasBtn": "be_signed_rebuild"
                        },
                        {
                            "name": "预览",
                            "hasBtn": "be_signed_preview",
                            "style": {
                                "color": "#FA8C16"
                            }
                        },
                        {
                            "name": "推送",
                            "hasBtn": "be_signed_launch"
                        }
                    ],
                    "_X_ROW_KEY": "row_423"
                }]


        }


    },
    {
        '确认到岗':{
            'url':'http://172.16.70.246/test/oa_personnel/entrantNewFlow/updateEmplInfoStatus',
            'headers':{'Authorization': 'token', 'Content-Type': 'application/json'},
            'method':'get',
            'expect':200,
            'data':{'employeeId':'','contractStartDate':'2024-01-01','confirmOnDutyDate':'2024-01-01'}
        }
    }


]

xing=['赵','钱','孙','李','周','吴','郑','王','冯','陈','褚','卫','蒋','沈','韩','朱','秦','尤','许']
ming=['伟','刚','强','军','勇','磊','东','浩','雄','宇','芳','娜','敏','秀英','静','丽','婷婷','洁','美','瑞','晓美','月']